package vo;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;



/**
 * 涓婚敭锛岃鍗曞彿锛屾椂闂达紝鍟嗗搧淇℃伅锛屾敹璐т汉锛岄【瀹紝璺熷湴鍧�琛ㄥ叧鑱旂殑涓滆タ锛岄噾棰濓紝浠樻鏂瑰紡锛岃鍗曠姸鎬侊紝澶囨敞,璁㈠崟璇勪环,璇勪环绛夌骇
 *
 */
@Entity
@Table(name="orderform")
public class OrderForm implements Serializable{

	private static final long serialVersionUID = 1L;

	// 浣跨敤搴忓垪鑷闀夸綔涓鸿鍗曠殑鍞竴鏍囪瘑
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer orderId;
	
	//璁㈠崟缂栧彿
	@Id
	private String orderNumber;
	
	//璁㈣喘鏃堕棿
	private String orderTime;

	/*//涓�涓鍗曞搴斿涓晢鍝佹潯鐩�
	@ElementCollection(fetch=FetchType.LAZY)
	@CollectionTable(name="commodityitem",joinColumns=@JoinColumn(name="orderId"))
	@AttributeOverrides({
			@AttributeOverride(name = "province", column = @Column(name = "province",nullable = false)),
			@AttributeOverride(name = "city", column = @Column(name = "city",nullable = false)),
			@AttributeOverride(name = "town", column = @Column(name = "town",nullable = false)),
			@AttributeOverride(name = "detailAddress", column = @Column(name = "detailAddress",nullable = false)) })
	private Set<CommodityItem> commodityitem;*/
	

	//鏀惰揣浜�
	private String receiver;
	
	
	//鎬讳环
	private double money;
	
	// 浠樻鏂瑰紡
	private int payType;// 浠樻鏂瑰紡锛歵rue琛ㄧず缃戜笂浠樻锛宖alse琛ㄧず鍒颁粯
	
	private int orderStatus;// 璁㈠崟鐘舵�侊細0锛氬彇娑堣繃鐨勮鍗曪紝1锛氭甯稿畬鎴愮殑璁㈠崟锛�2锛氭湭瀹屾垚鐨勮鍗�
	
	private String evaluation;//璁㈠崟璇勪环
	
	private String orderTip;// 澶囨敞

	private int estate;//璇勪环绛夌骇
	
	//涓�涓鍗曞搴斾竴涓晢鍝�
	private Integer commodityId;
			
	//璁㈠崟鍟嗗搧鐨勫崠瀹禝d
	private Integer storeId;

	//姣忎釜璁㈠崟鐢变竴浣� 涔板鎵�鍒涘缓     涔板鐨刬d
	private Integer clientId;

	//鏀惰揣鍦板潃
	private String orderAddress;
			
	
	public int getEstate() {
		return estate;
	}

	public void setEstate(int estate) {
		this.estate = estate;
	}

	


	public String getEvaluation() {
		return evaluation;
	}

	public void setEvaluation(String evaluation) {
		this.evaluation = evaluation;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public String getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(String orderTime) {
		this.orderTime = orderTime;
	}
	


	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	
	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public int getPayType() {
		return payType;
	}

	public void setPayType(int payType) {
		this.payType = payType;
	}

	public int getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(int orderStatus) {
		this.orderStatus = orderStatus;
	}

	public String getOrderTip() {
		return orderTip;
	}

	public void setOrderTip(String orderTip) {
		this.orderTip = orderTip;
	}

	public Integer getCommodityId() {
		return commodityId;
	}

	public void setCommodityId(Integer commodityId) {
		this.commodityId = commodityId;
	}

	public Integer getStoreId() {
		return storeId;
	}

	public void setStoreId(Integer storeId) {
		this.storeId = storeId;
	}

	public Integer getClientId() {
		return clientId;
	}

	public void setClientId(Integer clientId) {
		this.clientId = clientId;
	}

	public String getOrderAddress() {
		return orderAddress;
	}

	public void setOrderAddress(String orderAddress) {
		this.orderAddress = orderAddress;
	}

	@Override
	public String toString() {
		return "OrderForm [orderId=" + orderId + ", orderNumber=" + orderNumber
				+ ", orderTime=" + orderTime + ", receiver=" + receiver
				+ ", money=" + money + ", payType=" + payType
				+ ", orderStatus=" + orderStatus + ", evaluation=" + evaluation
				+ ", orderTip=" + orderTip + ", estate=" + estate
				+ ", commodityId=" + commodityId + ", storeId=" + storeId
				+ ", clientId=" + clientId + ", orderAddress=" + orderAddress
				+ "]";
	}

	
	

}
